package org.example.demo1.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import lombok.Data;

@Data
@Configuration
@ConfigurationProperties(prefix = "monitor")
public class MonitorConfig {
    private Grafana grafana;
    private Prometheus prometheus;
    private Kubernetes kubernetes;

    @Data
    public static class Grafana {
        private String url;
        private String username;
        private String password;
        private String apiKey;
    }

    @Data
    public static class Prometheus {
        private String url;
        private String username;
        private String password;
    }

    @Data
    public static class Kubernetes {
        private String masterUrl;
        private String namespace;
        private String token;
        private String caCertPath;
    }
} 